<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <link rel="stylesheet" href="login-styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            margin-bottom: 60px; /* 为底部导航栏留出空间 */
        }
        .content {
            padding: 20px;
            margin-bottom: 60px; /* 为底部导航栏留出空间 */
        }
        .bottom-nav {
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
            background-color: #f8f8f8;
            border-top: 1px solid #ddd;
            padding: 5px 0;
        }
        .bottom-nav a {
            flex: 1;
            text-align: center;
            font-size: 12px;
            color: #666;
            text-decoration: none;
        }
        .bottom-nav a.active {
            color: #007bff;
        }
        .bottom-nav a .icon {
            display: block;
            font-size: 20px;
            margin-bottom: 5px;
        }

        /* Web 端隐藏底部导航栏 */
        @media (min-width: 768px) {
            .bottom-nav {
                display: none;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="auth-card">
            <div class="auth-header">
                <h1>SimpleNote</h1>
                <p>欢迎回来，请登录您的账号</p>
            </div>

            <div class="tab-group">
                <div class="tab-item active">登录</div>
                <div class="tab-item">注册</div>
            </div>

            <!-- 登录表单 -->
            <form id="login-form">
                <div class="form-group">
                    <input type="text" placeholder="用户名/邮箱" required>
                    <i class="icon fas fa-user"></i>
                    <div class="error-message">请输入用户名或邮箱</div>
                </div>

                <div class="form-group">
                    <input type="password" placeholder="密码" required>
                    <i class="icon fas fa-lock"></i>
                    <div class="error-message">请输入密码</div>
                </div>

                <button type="submit" class="btn btn-primary">登录</button>
            </form>

            <!-- 注册表单（默认隐藏） -->
            <form id="register-form" style="display: none;">
                <div class="form-group">
                    <input type="text" placeholder="用户名" required>
                    <i class="icon fas fa-user"></i>
                    <div class="error-message">请输入用户名</div>
                </div>

                <div class="form-group">
                    <input type="email" placeholder="邮箱" required>
                    <i class="icon fas fa-envelope"></i>
                    <div class="error-message">请输入有效的邮箱地址</div>
                </div>

                <div class="form-group">
                    <input type="password" placeholder="密码" required>
                    <i class="icon fas fa-lock"></i>
                    <div class="error-message">密码长度至少6位</div>
                </div>

                <div class="form-group">
                    <input type="password" placeholder="确认密码" required>
                    <i class="icon fas fa-lock"></i>
                    <div class="error-message">两次输入的密码不一致</div>
                </div>

                <button type="submit" class="btn btn-primary">注册</button>
            </form>

            <div class="social-login">
                <p>其他登录方式</p>
                <div class="social-icons">
                    <div class="social-icon wechat">
                        <i class="fab fa-weixin"></i>
                    </div>
                    <div class="social-icon qq">
                        <i class="fab fa-qq"></i>
                    </div>
                    <div class="social-icon weibo">
                        <i class="fab fa-weibo"></i>
                    </div>
                </div>
            </div>

            <div class="form-footer">
                <a href="#">忘记密码？</a>
            </div>
        </div>
    </div>

    <!-- 引入底部导航栏 -->
    <div class="bottom-nav">
        <a href="note-list.html">
            <span class="icon">🏠</span>
            <span>首页</span>
        </a>
        <a href="messages.html">
            <span class="icon">💬</span>
            <span>消息</span>
        </a>
        <a href="login.html" class="active">
            <span class="icon">👤</span>
            <span>个人</span>
        </a>
    </div>

    <script src="login-script.js"></script>
</body>
</html>
